package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Wish;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.WishQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WishMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Wish record);

    Wish selectByPrimaryKey(Long id);

    List<Wish> selectAll();

    int updateByPrimaryKey(Wish record);

    List<Wish> listForWishes(WishQueryObject qo);

    int selectByUserIdAndStrategyId(@Param("userId") Long userId, @Param("strategyId") Long strategyId);

    int deleteWishByUserIdAndStrategyId(@Param("userId") Long userId, @Param("strategyId") Long strategyId);

    int countForUserId(Long userId);

    List<Wish> ListForUserId(QueryObject qo);
}